<!DOCTYPE html>
<html>
<head>
	<title>switch</title>
</head>
<body>
<script type="text/javascript">
	
	let a = 1;
	switch (a) {
		case 1:
			console.log('ok')
			break;
		case 2:
			console.log('hello') 
			break;
		default:
			// statements_def
			break;
	}

</script>
</body>
</html>